<?php

/*
#------------------------------------------------------------------------
# memovie - February 2010 (for Joomla 1.5)
#
# Copyright (C) 2007-2010 Gavick.com. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.gavick.com
# Support: support@gavick.com   
#------------------------------------------------------------------------ 
# Based on T3 Framework
#------------------------------------------------------------------------
# Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license - GNU/GPL, http://www.gnu.org/copyleft/gpl.html
# Author: J.O.O.M Solutions Co., Ltd
#------------------------------------------------------------------------
*/





defined('_JEXEC') or die('Restricted access');

$cparams = JComponentHelper::getParams ('com_media');

?>



<?php if ($this->params->get('show_page_title',1)) : ?>

<h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">

	<span><?php echo $this->escape($this->params->get('page_title')); ?></span>

</h1>

<?php endif; ?>





<div class="weblinks<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">



	<?php if ($this->params->def('show_comp_description', 1) || $this->params->def('image', -1) != -1) : ?>

	<div class="contentdescription<?php echo $this->escape($this->params->get('pageclass_sfx')); ?> clearfix">



		<?php if ($this->params->def('image', -1) != -1) : ?>

		<img src="<?php echo $this->baseurl . $this->escape($cparams->get('image_path')).'/'.$this->escape($this->params->get('image')); ?>" alt="" class="image_<?php echo $this->escape($this->params->get('image_align')); ?>" />

		<?php endif; ?>



		<?php if ($this->params->get('show_comp_description')) :

			echo $this->params->get('comp_description');

		endif; ?>



		<?php if ($this->params->def('image', -1) != -1) : ?>

		<div class="wrap_image">&nbsp;</div>

		<?php endif; ?>



	</div>

	<?php endif; ?>



</div>





<?php if (count($this->categories)) : ?>

<ul>

	<?php foreach ($this->categories as $category) : ?>

	<li>

		<a href="<?php echo $category->link; ?>" class="category<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">

			<?php echo $this->escape($category->title); ?></a>

		&nbsp;<span class="small">(<?php echo (int)$category->numlinks ?>)</span>

	</li>

	<?php endforeach; ?>

</ul>

<?php endif;

